#include"NamedFifo.hpp"
#include"Shm.hpp"
#include<iostream>
int main()
{
    Shm shm(pathname,projid,"creater");
    NamedFifo file(PATH,NAME);
    FileOper waitfile(PATH,NAME);
    waitfile.OpenForRead();

    while(true)
    {
         if(waitfile.Wait())
        std::cout<<(char*)shm.VirtualAddr()<<std::endl;
        else
        break;
       
    }
    return 0;
}